#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin >> n;
    int a[100001],z=0;
    for(int i=1;i<=n;i++){
        cin >> a[i];
    }
    sort(a,a+n+1);
    for(int i=1;i<=n;i++){
        for(int j=1;i+j<=n;j++){
            if(a[i+j]!=-1){
                if(a[i]<a[i+j]){
                    z++;
                    a[i]=-1;
                    a[i+j]=-1;
                    break;
                }
            }
        }
    }
    cout <<n-z;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
